cor.test
{stats}
Test for Association/Correlation Between Paired Samples
as.numeric
{base}
Coerce a vector to numeric
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
as.factor
{base}
Coerce a vector to factor
tapply
{base}
Create statistical summaries by group based on the levels of one or several factors
prop.table
{base}
Transform frequency table into table of proportions
addmargins
{stats}
Puts Arbitrary Margins on Multidimensional Tables or Arrays
cor
{stats}
Calculate Correlation Matrix
barplot
{graphics}
Plot a simple bar plot
which
{base}
return indexes of TRUE entries of a logical vector
par
{graphics}
Set parameters of the plotting device
The end!